计算机与现代化 ›› 2013, Vol. 218 ›› Issue (10): 197-199.doi: 10.3969/j.issn.1006-2475.2013.10.048

• 应用与开发 • 上一篇    下一篇

基于ASP.NET MVC框架的Web应用开发

周文红   

  1. 江西省计算技术研究所,江西南昌330002
  • 收稿日期:2013-07-23 修回日期:1900-01-01 出版日期:2013-10-26 发布日期:2013-10-26

Development of Web Application Based on ASP.NET MVC Framework

ZHOU Wen-hong   

  1. Jiangxi Institute of Computing Technology, Nanchang 330002, China
  • Received:2013-07-23 Revised:1900-01-01 Online:2013-10-26 Published:2013-10-26

摘要: 介绍使用ASP.NET MVC框架进行Web应用开发。此方法使用C#语言编写的控制器类为核心,通过控制器转到不同的业务方法进行处理,将结果返回到视图类中,在用户界面上显示;页面采用新型Rasor语法混合HTML标记,实现页面模板化;数据存储在模型类中,然后映射到数据库进行持久化。整个应用实现良好的层次结构,有利于开发出结构清晰的企业Web应用。

关键词: Rasor, 页面模板, 视图类, 控制器

Abstract: This article introduces the development of Web application using ASP.NET MVC framework. Its core is controller classes writing in C#. User requests are dispatched to different business method to process by using controllers, and the result is returned to view classes, then it is displayed in user interface. The page adopts new Rasor grammar mixed with HTML tags, realizing page template. The data is stored in model classes for mapping to database and making data persistence. The whole application has a good hierarchy, and benefit for developing a clear structure of enterprise Web application.

Key words: Rasor, page template, view classes, controller

中图分类号: